/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-05-20
 * Time: 12:06
 */
public class code6 {
    public static boolean isOdd(int[] nums){
        int n=nums.length;
        int ret=0;
        for(int i=0;i<n;i++){
            if(nums[i]%2==0)
                ret=0;
            else
                ret++;
            if(ret==3)
                return true;
        }
        return false;
    }
    public static void main(String[] args) {
        int[] nums1=new int[]{2,6,4,1};
        int[] nums2=new int[]{1,2,34,3,4,5,7,23,12};
        System.out.println(isOdd(nums1));
        System.out.println(isOdd(nums2));
    }
}
